package com.macro.controller;

import com.macro.pojos.dto.ResponseResult;
import com.macro.service.UiBrandService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1/brand")
@Api(tags = "品牌管理")
public class UiBrandController {

    @Autowired
    UiBrandService uiBrandService;

    /**
     * 品牌查询
     * @param userId
     * @return
     */
    @GetMapping("/queryBrand")
    @ApiOperation(value = "品牌查询",notes = "品牌查询")
    public ResponseResult queryBrand(@RequestHeader Integer userId){
        return uiBrandService.queryBrand();
    }


}
